package com.tjsinfo.tjsoa.worksummary.vo;

import java.util.HashSet;
import java.util.Set;

import com.tjsinfo.tjsoa.system.vo.TSystemUser;


/**
 * WorkSummaryMain entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WorkSummaryMain implements java.io.Serializable {

	// Fields

	private String id;
	private TSystemUser tjsUser;
	private String times;
	private String content;
	private String subject;
	private String examineState;
	private String examineUserId;
	private Set workSummaryExamines = new HashSet(0);
	

	// Constructors

	/** default constructor */
	public WorkSummaryMain() {
	}

	/** minimal constructor */
	public WorkSummaryMain(TSystemUser tjsUser) {
		this.tjsUser = tjsUser;
	}

	/** full constructor */
	public WorkSummaryMain(TSystemUser tjsUser, String times, String content,
			String subject, String examineState,String examineUserId,Set workSummaryExamines) {
		this.tjsUser = tjsUser;
		this.times = times;
		this.content = content;
		this.subject = subject;
		this.examineState = examineState;
		this.examineUserId = examineUserId;
		this.workSummaryExamines = workSummaryExamines;
	}

	// Property accessors

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#getId()
	 */
	public String getId() {
		return this.id;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#setId(java.lang.Integer)
	 */
	public void setId(String id) {
		this.id = id;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#getTjsUser()
	 */
	public TSystemUser getTjsUser() {
		return this.tjsUser;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#setTjsUser(com.tjsinfo.tjsoa.system.TjsUser.TjsUser)
	 */
	public void setTjsUser(TSystemUser tjsUser) {
		this.tjsUser = tjsUser;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#getTimes()
	 */
	public String getTimes() {
		return this.times;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#setTimes(java.lang.String)
	 */
	public void setTimes(String times) {
		this.times = times;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#getContent()
	 */
	public String getContent() {
		return this.content;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#setContent(java.lang.String)
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#getSubject()
	 */
	public String getSubject() {
		return this.subject;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#setSubject(java.lang.String)
	 */
	public void setSubject(String subject) {
		this.subject = subject;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#getWorkSummaryExamines()
	 */
	public String getExamineState() {
		return this.examineState;
	}

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.examine.IWorkSummaryexamine#setExamineState(java.lang.Integer)
	 */
	public void setExamineState(String examineState) {
		this.examineState = examineState;
	}
	
	public String getExamineUserId() {
		return this.examineUserId;
	}
	
	public void setExamineUserId(String examineUserId) {
		this.examineUserId = examineUserId;
	}
	
	public Set getWorkSummaryExamines() {
		return this.workSummaryExamines;
	} 

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worksummary.main.IWorkSummaryMain#setWorkSummaryExamines(java.util.Set)
	 */
	public void setWorkSummaryExamines(Set workSummaryExamines) {
		this.workSummaryExamines = workSummaryExamines;
	}
	
	public void addWorkExamines(WorkSummaryExamine summaryExamine)
	{
		this.workSummaryExamines.add(summaryExamine);
		summaryExamine.setWorkSummaryMain(this);
	}
}